﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RealWorld
{
    /// <summary>
    ///  The 'ConcreteBuilder2' class
    /// </summary>
    class MotorCycleBuilder:VehicleBuilder
    {
        public MotorCycleBuilder()
        {
            vehicleObj = new Vehicle("MotoCycle");
        }

        public override void BuildFrame()
        {
            vehicleObj["frame"] = "MotoCycle frame";
        }

        public override void BuildEngine()
        {
            vehicleObj["engine"] = "500 cc";
        }

        public override void BuildWheels()
        {
            vehicleObj["wheels"] = "2";
        }

        public override void BuildDoors()
        {
            vehicleObj["doors"] = "0";
        }
    }
}
